package com.aloda.exception;

import lombok.Data;

@Data
public class BaseException extends RuntimeException{

    protected Integer errorCode;

    public BaseException() {
    }

    public BaseException(String message){
        super(message);
        this.errorCode = 0;
    }

    public BaseException(Integer errorCode, String message){
        super(message);
        this.errorCode = errorCode;
    }
}
